home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / vernon.zip / TERM.PAS < prev    next >
Pascal/Delphi Source File  |  1989-03-01  |  396b  |  14 lines

  1.  
  2.      {This function uses the other functions to calculate one term
  3.       of the Taylor series expansion of sin(x) }
  4.  
  5.       function Term ( X : real;  I :integer) : real;
  6.       var TERM1 : REAL;
  7.       begin
  8.  
  9.            Term := Neg1(I) * Xval(X,I) / Fact(2 * I  + 1);
  10.            TERM1 := NEG1(I) * XVAL(X,I) / FACT(2 * I + 1);
  11.           {WRITELN('The term is: ', TERM1)}
  12.       end;
  13.  
  14.